From: Jo-Philipp Wich Date: Sun, 30 Jun 2019 19:24:05 +0000 (+0200) Subject: phase1: allow overriding config.ini location with env var X-Git-Tag: v1~94 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=354321c20e1a59c9820637f1002f2dc635f5eed0;p=buildbot.git phase1: allow overriding config.ini location with env var Signed-off-by: Jo-Philipp Wich --- diff --git a/phase1/master.cfg b/phase1/master.cfg index 5350a43..1061eb2 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -13,7 +13,7 @@ from buildbot import locks # 'master.cfg' in your buildmaster's base directory. ini = ConfigParser.ConfigParser() -ini.read("./config.ini") +ini.read(os.getenv("BUILDMASTER_CONFIG", "./config.ini")) # This is the dictionary that the buildmaster pays attention to. We also use # a shorter alias to save typing.